package com.pactera.miyuangroup.db.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 补货记录
 * </p>
 *
 * @author WangWu
 * @since 2018-04-13
 */
@TableName("t_replenishment")
public class Replenishment extends Model<Replenishment> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	private String id;
    /**
     * 补货单号
     */
	private String numbers;
    /**
     * 售货机ID
     */
	private String vendorId;
    /**
     * 操作人员主键ID
     */
	private String userId;
    /**
     * 本次应取回现金数
     */
	private BigDecimal shouldRetrieveMoney;
    /**
     * 本次总金额
     */
	private BigDecimal totalAmount;
    /**
     * 本次在线交易金额
     */
	private BigDecimal onlineTradingMoney;
    /**
     * 补充时间
     */
	private Date replenishmentTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNumbers() {
		return numbers;
	}

	public void setNumbers(String numbers) {
		this.numbers = numbers;
	}

	public String getVendorId() {
		return vendorId;
	}

	public void setVendorId(String vendorId) {
		this.vendorId = vendorId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigDecimal getShouldRetrieveMoney() {
		return shouldRetrieveMoney;
	}

	public void setShouldRetrieveMoney(BigDecimal shouldRetrieveMoney) {
		this.shouldRetrieveMoney = shouldRetrieveMoney;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getOnlineTradingMoney() {
		return onlineTradingMoney;
	}

	public void setOnlineTradingMoney(BigDecimal onlineTradingMoney) {
		this.onlineTradingMoney = onlineTradingMoney;
	}

	public Date getReplenishmentTime() {
		return replenishmentTime;
	}

	public void setReplenishmentTime(Date replenishmentTime) {
		this.replenishmentTime = replenishmentTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Replenishment{" +
			"id=" + id +
			", numbers=" + numbers +
			", vendorId=" + vendorId +
			", userId=" + userId +
			", shouldRetrieveMoney=" + shouldRetrieveMoney +
			", totalAmount=" + totalAmount +
			", onlineTradingMoney=" + onlineTradingMoney +
			", replenishmentTime=" + replenishmentTime +
			"}";
	}
}
